
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://shale.apache.org/validator">
 
<f:view>
<f:loadBundle var="text" basename="#{mBeanForm.bundleName}"/>
    <head>
        <title>#{text['mbeanDetail.title']}</title>
        <meta name="heading" content="#{text['mbeanDetail.heading']}"/>
        <meta name="menu" content="PersonMenu"/>
    </head>
<body id="personForm">
 
<h:form id="personForm">
<h:inputHidden value="#{mBeanForm.MBean.id}" id="id"/>
 
<h:panelGrid columns="3">
 
    <h:outputLabel styleClass="desc" for="name" value="#{text['mbean.name']}"/>
    <h:inputText styleClass="text medium" id="name" value="#{mBeanForm.MBean.name}"/>
    <t:message for="name" styleClass="fieldError"/>
 
    <h:outputLabel styleClass="desc" for="type" value="#{text['mbean.type']}"/>
 
    <h:inputText styleClass="text medium" id="type" value="#{mBeanForm.MBean.type}"/>
    <t:message for="type" styleClass="fieldError"/>
 
    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{mBeanForm.save}" id="save" styleClass="button"/>
 
        <c:if test="${not empty mBeanForm.MBean.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{mBeanForm.delete}"
            id="delete" styleClass="button"/>
        </c:if>
 
        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true" 
            id="cancel" styleClass="button"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>
 
<script type="text/javascript">
    $('mBeanForm:name').focus();
    highlightFormElements();
</script>
 
</body>
</f:view>
</html>